package com.pmgames.vo;

public class Param implements IXmlSerializable {

	private String paramType;
	private int id;
	private String label;
	
	public String getParamType() {
		return paramType;
	}

	public void setParamType(String paramType) {
		this.paramType = paramType;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public Param() {
		// TODO Auto-generated constructor stub
	}
	
	/* (non-Javadoc)
	* @see java.lang.Object#equals(java.lang.Object)
	*/
	@Override
	public boolean equals(Object arg0) {
		return this.paramType == ((Param)arg0).getParamType() && this.id == ((Param)arg0).getId();
	}

	@Override
	public String toXml() {
		String xml = "<param>";
		xml += "<id>" + id + "</id>";
		xml += "<paramType>" + paramType + "</paramType>";
		xml += "<label>" + label + "</label>";
		xml += "</param>";
		return xml;
	}

}
